package com.khyr.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.khyr.entity.News;
import com.khyr.entity.Notice;
import com.khyr.vo.NoticeVo;
import com.khyr.vo.R;

import java.util.List;


/**
 * @InterfaceName: NoticeService
 * @author: Zyl
 * @date: 2025/3/11 18:36
 * @Version: 1.0
 * @description:
 */

public interface NoticeService {
    public R<Page<Notice>> findNotice(NoticeVo noticeVo);//公共分页查询

    R<List<Notice>> selectAllNotice();


    R addNotice(NoticeVo noticeVo);

    R updateNotice(NoticeVo noticeVo);

    R getNoticeById(Integer id);

    R deleteNoticeByNoticeIds(List<Integer> noticeIds);

    R<List<News>> getLittleNews();

    R<News> getNewsByNewsId(String newsId);
}
